package org.team102.frcscoutingapp;

import android.annotation.SuppressLint;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SqLiteException;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class DisplayScouter extends Activity {
	
	@SuppressLint("NewApi")
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.menu.activity_display_scouter) ;
		
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
			getActionBar().setDisplayHomeAsUpEnabled(true);
		}
		
		//Receive intent
		Intent intent = getIntent();
		String alliance = intent.getStringExtra(MainMenu.EXTRA_ALLIANCE);
		String initial = intent.getStringExtra(MainMenu.EXTRA_INITIALS);
		
		//Get the TextViews
		TextView t = (TextView)findViewById(R.id.TextInitials);
		TextView AlliCol = (TextView)findViewById(R.id.TextAllianceId);
		
		//Edit Text box words
		AlliCol.setText(alliance);
		t.setText(initial);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_display_scouter, menu);
		return true;
	}

	
	
}
